cmake_minimum_required (VERSION 2.6)
project ("TPDistribuidos")

set(SRC_DIR src/)
set(OUT_DIR bin/)
set(CMAKE_BUILD_TYPE Debug)
include_directories("${SRC_DIR}")
include_directories("${SRC_DIR}application")
include_directories("${SRC_DIR}common")
include_directories("${SRC_DIR}communication")
include_directories("${SRC_DIR}ipc")

AUX_SOURCE_DIRECTORY ("${SRC_DIR}application" COMMON_SRC)
AUX_SOURCE_DIRECTORY ("${SRC_DIR}common" COMMON_SRC)
AUX_SOURCE_DIRECTORY ("${SRC_DIR}communication" COMMON_SRC)
AUX_SOURCE_DIRECTORY ("${SRC_DIR}ipc" COMMON_SRC)

file(MAKE_DIRECTORY ${OUT_DIR})

add_executable(${OUT_DIR}visitorApp ${SRC_DIR}visitorApp.cpp ${COMMON_SRC})
add_executable(${OUT_DIR}busStationApp ${SRC_DIR}busStationApp.cpp ${COMMON_SRC})
add_executable(${OUT_DIR}busApp ${SRC_DIR}busApp.cpp ${COMMON_SRC})